home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AOL File Library: 2,801 to 2,900
/
aol-file-protocol-4400-2801-to-2900.zip
/
AOLDLs
/
C++ Files Library
/
Point_Rect C++ Classes
/
MacObj.sit
/
MacObj ƒ
/
CPoint.h
< prev
next >
Wrap
Text File
|
1993-09-15
|
988b
|
52 lines
/*
CPoint.h
Interface for the Point Class
*/
#pragma once
//
// If the symbol _MACOBJ_SPEED is defined, the file CPoint.cp is included by this
// header file and all methods are inlined. Otherwise, CPoint.cp must be included
// in your project and all methods are called as subroutines.
//
#define _MACOBJ_SPEED
#include <Types.h>
#include <QuickDraw.h>
class CPoint : public Point // based on Mac Point structure
{
public:
// Constructors
CPoint();
CPoint(short ih, short iv);
CPoint(Point p);
// Member functions
void Offset(short oh, short ov);
void Offset(Point p);
// Quickdraw member functions
void Move(void);
void MoveTo(void);
void Line(void);
void LineTo(void);
// Operators
Boolean operator==(Point p) const;
Boolean operator!=(Point p) const;
void operator+=(Point p);
void operator-=(Point p);
CPoint operator+(Point p) const;
CPoint operator-(Point p) const;
CPoint operator-() const;
};
#ifdef _MACOBJ_SPEED
#include "CPoint.cp"
#endif